package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    @Select("delete from dish_flavor where dish_id = #{id}")
    void deleteDishFlavorByDishId(Long id);

    void insertDishFlavor(DishFlavor dishFlavor);

    void deleteDishFlavorByDishIds(List<Long> ids);

    List<DishFlavor> getDishFlavorById(Long id);

    void insertBatch(List<DishFlavor> flavors);
}
